home *** CD-ROM | disk | FTP | other *** search
-
-
-
- XXXXmmmmCCCCoooonnnnvvvveeeerrrrttttUUUUnnnniiiittttssss((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV XXXXmmmmCCCCoooonnnnvvvveeeerrrrttttUUUUnnnniiiittttssss((((3333XXXX))))
-
-
-
- NNNNAAAAMMMMEEEE
- XXXXmmmmCCCCoooonnnnvvvveeeerrrrttttUUUUnnnniiiittttssss - A function that converts a value in one
- unit type to another unit type
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- ####iiiinnnncccclllluuuuddddeeee <<<<XXXXmmmm////XXXXmmmm....hhhh>>>>
-
- iiiinnnntttt XXXXmmmmCCCCoooonnnnvvvveeeerrrrttttUUUUnnnniiiittttssss ((((_w_i_d_g_e_t, _o_r_i_e_n_t_a_t_i_o_n, _f_r_o_m__u_n_i_t__t_y_p_e,
- _f_r_o_m__v_a_l_u_e, _t_o__u_n_i_t__t_y_p_e))))
- WWWWiiiiddddggggeeeetttt _w_i_d_g_e_t;;;;
- iiiinnnntttt _o_r_i_e_n_t_a_t_i_o_n;;;;
- iiiinnnntttt _f_r_o_m__u_n_i_t__t_y_p_e;;;;
- iiiinnnntttt _f_r_o_m__v_a_l_u_e;;;;
- iiiinnnntttt _t_o__u_n_i_t__t_y_p_e;;;;
-
-
- VVVVEEEERRRRSSSSIIIIOOOONNNN
- This page documents version 1.2 of the Motif library.
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- XXXXmmmmCCCCoooonnnnvvvveeeerrrrttttUUUUnnnniiiittttssss converts the value and returns it as the
- return value from the function.
-
-
- _w_i_d_g_e_t Specifies the widget for which the data is to be
- converted
-
- _o_r_i_e_n_t_a_t_i_o_n Specifies whether the converter uses the
- horizontal or vertical screen resolution when
- performing the conversions. _o_r_i_e_n_t_a_t_i_o_n can
- have values of XXXXmmmmHHHHOOOORRRRIIIIZZZZOOOONNNNTTTTAAAALLLL or XXXXmmmmVVVVEEEERRRRTTTTIIIICCCCAAAALLLL.
-
- _f_r_o_m__u_n_i_t__t_y_p_e
- Specifies the current unit type of the supplied
- value
-
- _f_r_o_m__v_a_l_u_e Specifies the value to be converted
-
- _t_o__u_n_i_t__t_y_p_e
- Converts the value to the unit type specified
-
-
- The parameters _f_r_o_m__u_n_i_t__t_y_p_e and _t_o__u_n_i_t__t_y_p_e can have the
- following values:
-
-
- +o XXXXmmmmPPPPIIIIXXXXEEEELLLLSSSS-all values provided to the widget are treated
- as normal pixel values. This is the default for the
- resource.
-
- +o XXXXmmmm111100000000TTTTHHHH____MMMMIIIILLLLLLLLIIIIMMMMEEEETTTTEEEERRRRSSSS-all values provided to the widget
- are treated as 1/100 millimeter.
-
-
-
- Page 1 (printed 4/30/98)
-
-
-
-
-
-
- XXXXmmmmCCCCoooonnnnvvvveeeerrrrttttUUUUnnnniiiittttssss((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV XXXXmmmmCCCCoooonnnnvvvveeeerrrrttttUUUUnnnniiiittttssss((((3333XXXX))))
-
-
-
- +o XXXXmmmm1111000000000000TTTTHHHH____IIIINNNNCCCCHHHHEEEESSSS-all values provided to the widget are
- treated as 1/1000 inch.
-
- +o XXXXmmmm111100000000TTTTHHHH____PPPPOOOOIIIINNNNTTTTSSSS-all values provided to the widget are
- treated as 1/100 point. A point is a unit typically
- used in text processing applications and is defined as
- 1/72 inch.
-
- +o XXXXmmmm111100000000TTTTHHHH____FFFFOOOONNNNTTTT____UUUUNNNNIIIITTTTSSSS-all values provided to the widget
- are treated as 1/100 of a font unit. A font unit has
- horizontal and vertical components. These are the
- values of the XmScreen resources XXXXmmmmNNNNhhhhoooorrrriiiizzzzoooonnnnttttaaaallllFFFFoooonnnnttttUUUUnnnniiiitttt
- and XXXXmmmmNNNNvvvveeeerrrrttttiiiiccccaaaallllFFFFoooonnnnttttUUUUnnnniiiitttt.
-
-
- RRRREEEETTTTUUUURRRRNNNN VVVVAAAALLLLUUUUEEEE
- Returns the converted value. If a NULL widget, incorrect
- _o_r_i_e_n_t_a_t_i_o_n, or incorrect _u_n_i_t__t_y_p_e is supplied as parameter
- data, 0 is returned.
-
- RRRREEEELLLLAAAATTTTEEEEDDDD IIIINNNNFFFFOOOORRRRMMMMAAAATTTTIIIIOOOONNNN
- XXXXmmmmSSSSeeeettttFFFFoooonnnnttttUUUUnnnniiiittttssss((((3333XXXX)))) and XXXXmmmmSSSSccccrrrreeeeeeeennnn((((3333XXXX)))).
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Page 2 (printed 4/30/98)
-
-
-
-